package com.keepmoving.po;

import java.sql.Timestamp;

/**
 * @author 魏范彬
 * 回复实体类
 */
public class Reply {

    /**
     * 回复的编号
     */
    private int pId;

    /**
     * 留言编号
     */
    private int oId;

    /**
     * 回复内容
     */
    private String reply;

    /**
     * 用户的lid
     */
    private int lId;

    /**
     * 评论上一级的id
     */
    private int lastId;

    /**
     * 评论时间
     */
    private Timestamp replyDate;

    public Reply() {
    }

    public Reply(int pId, int oId, String reply, int lId, int lastId, Timestamp replyDate) {
        this.pId = pId;
        this.oId = oId;
        this.reply = reply;
        this.lId = lId;
        this.lastId = lastId;
        this.replyDate = replyDate;
    }

    public int getpId() {
        return pId;
    }

    public void setpId(int pId) {
        this.pId = pId;
    }

    public int getoId() {
        return oId;
    }

    public void setoId(int oId) {
        this.oId = oId;
    }

    public String getReply() {
        return reply;
    }

    public void setReply(String reply) {
        this.reply = reply;
    }

    public int getlId() {
        return lId;
    }

    public void setlId(int lId) {
        this.lId = lId;
    }

    public int getLastId() {
        return lastId;
    }

    public void setLastId(int lastId) {
        this.lastId = lastId;
    }

    public Timestamp getReplyDate() {
        return replyDate;
    }

    public void setReplyDate(Timestamp replyDate) {
        this.replyDate = replyDate;
    }

    @Override
    public String toString() {
        return "Reply{" +
                "pId=" + pId +
                ", oId=" + oId +
                ", reply='" + reply + '\'' +
                ", lId=" + lId +
                ", lastId=" + lastId +
                ", replyDate=" + replyDate +
                '}';
    }
}
